# extra flags for non-debug releases: -ffast-math -O3
DEBUGFLAGS=-g
CFLAGS=${DEBUGFLAGS} `allegro-config --cflags`
CXXFLAGS=${DEBUGFLAGS} `allegro-config --cflags`
ALLEG=`allegro-config --libs`

TARGET=imgm
OBJS=imgm.o

TARGET2=ani
OBJS2=ani.o

all: ${TARGET} ${TARGET2}

${TARGET}: ${OBJS}
	g++ ${DEBUGFLAGS} -o ${TARGET} ${OBJS} ${ALLEG}
	
${TARGET2}: ${OBJS2}
	g++ ${DEBUGFLAGS} -o ${TARGET2} ${OBJS2} ${ALLEG}
	
clean:
	rm -f ${TARGET} ${TARGET2} *.o core*
